package com.java110.dto.repair;

import java.util.HashMap;
import java.util.Map;

public enum RepairStateEnum {
    WAITING("待派单", "1000"),
    ORDER_TAKING("接单", "1100"),
    TRANSFER("转单", "1200"),
    STOP("暂停", "1300"),
    CHARGEBACK("退单", "1400"),
    RETURN_VISIT("回访", "1500"),
    COMPLETED("完成", "1600"),
    ;
    private String stateName;
    private String state;
    public static Map<String, String> RepairStateMap = new HashMap<>();

    static {
        for (RepairStateEnum repairStateEnum : RepairStateEnum.values()) {
            RepairStateMap.put(repairStateEnum.getState(), repairStateEnum.getStateName());
        }
    }

    RepairStateEnum(String stateName, String state) {
        this.stateName = stateName;
        this.state = state;
    }

    public String getStateName() {
        return stateName;
    }

    public String getState() {
        return state;
    }

}
